package com.sanzang.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;

/**
 * 配置分页
 * @author sanzang
 *
 */
@Configuration
@MapperScan(basePackages = "com.sanzang.dao")
public class MybatisPlusConfig {	
	
	@Bean
    public PaginationInterceptor paginationInterceptor() {    
        return new  PaginationInterceptor();
    }
}
